package chainofResponsibilityPattern.handler.handler;

/**
 * Created by JiaJia on 2019/6/17 0017.
 */
public class Manager extends PriceHandler {
    @Override
    public void processDiscount(float discount) {
        if (discount<=0.3){
            System.out.format("%s批准了折扣：%.2f%n",this.getClass().getName(),discount);
        }else {
            successor.processDiscount(discount);
        }
    }
}